Skip to content

Add regression tests #18240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 19, 2023
Merged

Add regression tests #18240

merged 1 commit into from
Jul 19, 2023

Conversation

nicolasstucki
Copy link
Contributor

Closes #18228

@nicolasstucki nicolasstucki self-assigned this Jul 18, 2023
@nicolasstucki nicolasstucki marked this pull request as ready for review July 19, 2023 07:13
def unapply(expr: Expr[QueryMeta[T]])(using q: Quotes): Option[QueryMeta[T]] =
import q.reflect.*
expr match
case '{ QueryMeta[t](${ map }: Map[String, String]) } =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
case '{ QueryMeta[t](${ map }: Map[String, String]) } =>
case '{ QueryMeta(${ map }: Map[String, String]) } =>

Shouldn't we use only either instance of Type[T] (variant a) or only type extractor [t] (variant b)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one was supposed to be

        case '{ QueryMeta[T](${ map }: Map[String, String]) } =>

I pushed a fixed version.

@nicolasstucki nicolasstucki merged commit 94eb6b7 into scala:main Jul 19, 2023
@nicolasstucki nicolasstucki deleted the fix-18228 branch July 19, 2023 08:53
Kordyjan added a commit that referenced this pull request Dec 8, 2023
Backports #18240 to the LTS branch.

PR submitted by the release tooling.
[skip ci]
@Kordyjan Kordyjan added this to the 3.3.2 milestone Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression in tinkoff/oolong, missing type parameter in quotes
3 participants